package com.sui.bigdata.flink.sql.function.scalar;

import com.sui.bigdata.flink.sql.function.util.DBAes;

import org.apache.flink.table.functions.ScalarFunction;


/**
 * @author YongChen
 * @date 2019/11/26 10:18
 * @description
 * @email yong_chen@sui.com
 */
public class KnDecrypt extends ScalarFunction {

    public static String eval(String str){
        if(str == null){
            return null;
        }
        return  DBAes.decrypt(str);
    }

    public static void main(String[] args){
        System.out.println(KnDecrypt.eval("N190516838556000033"));
    }
}
